﻿{extend name="public:base" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link href="/static/laydate/theme/default/laydate.css">
<link href="__ADMIN__/css/style.css" rel="stylesheet">
{/block}

{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">所属门店</label>
                                <div class="col-sm-3">
                                    <select class="form-control" name="shop_id">
                                        <option value="0">请选择门店</option>
                                        {volist name="shop_list" id="vo"}
                                        <option value="{$vo.id}" {if ($info.shop_id == $vo.id)}selected{/if}>{$vo.name}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">车牌</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="license_plate" placeholder="请输入车牌" value="{$info.license_plate}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">车架号</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="vin" placeholder="请输入车架号" value="{$info.vin}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">车型</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="car_model" placeholder="请输入车型" value="{$info.car_model}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">年份</label>
                                <div class="col-sm-3">
                                    <select class="form-control" name="year">
                                        <option value="0">请选择年份</option>
                                        {for start="2010" end="2025"}
                                        <option value="{$i}" {$info.year == $i ? 'selected' : ''}>{$i}</option>
                                        {/for}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">机器型号</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="machine_model" placeholder="请输入机器型号" value="{$info.machine_model}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">防伪流水号</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="serial_number" placeholder="请输入防伪流水号" value="{$info.serial_number}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">客户姓名</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="customer_name" placeholder="请输入客户姓名" value="{$info.customer_name}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">联系方式</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="customer_mobile" placeholder="请输入联系方式" value="{$info.customer_mobile}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">安装日期</label>
                                <div class="col-sm-3">
                                    <input placeholder="请选择安装日期" type="text" name="installation_date" value="{$info.installation_date}" class="form-control form-control-lg installation-date" readonly>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{:input('id')}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name='js'}
<script src="/static/laydate/laydate.js"></script>
<script src="/static/layui/layui.js"></script>
<script>
    laydate.render({
        elem: '.installation-date' //指定元素
    });
</script>
{/block}
